<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>

	<head>
		<title>Editing new page</title>
        <script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
        <script type="text/javascript" src="/javascript/form.js"></script>
		<link rel=StyleSheet href="/stylesheets/page.css" type="text/css" media="screen" />
		<link rel="icon" type="image/png" href="/images/brownknot.png" />
	</head>
	<body>
		<img src="/images/logo.png">
		<div id="page">
			<div id="pagemiddle">
				<div id="pagetop">
					<div id="content">
<!------------------- Begin Content -------------------------->
						<div id="title">Editing page {{ pageNum }}.</div>
						<div id="error">{{ error }}</div>
						<div id="body">
						
							<form action="/page{{ pageNum }}.html" 
							              enctype="multipart/form-data" method="post">
            					<input type="hidden" name="action" value="editPage"/>
            					<p>Page title: <input type="text" class="textbox" name="title" value="{{ title }}"/></p>
            					<p>Select an image (450x300 max): <input type="file" name="img"/></p>
								<p>{{ fckeditor }}</p>
            					<p id="textlength">Please write at least 100 words.</p>
								<p><input type="submit" class="button" value="Submit your work!"/></p>
            					
        					</form>
						
						
						
						</div>
<!------------------- End Content -------------------------->
					</div>
				</div>
			</div>
			<div id="pagebottom">
				<div id="pagenum">
					Page {{ pageNum }}
				</div>
			</div>
		</div>
		<div id="enginelogo">
			<a href="http://code.google.com/appengine/" border="0">
				<img  src="http://code.google.com/appengine/images/appengine-silver-120x30.gif" 
alt="Powered by Google App Engine" />
			</a>
		</div>
	</body>
</html>